<%@include file="header.jsp" %>
<c:set var="t" value="true" />
	<form action = "UpdateFacility" method = post><br/>
	<table class="table table-striped">
		<tr>
			<td><fmt:message key="label.booking.facilityID"/></td>
			<td><input type="text" name="facilityID" value="${param['facilityID']}" size=15 maxlength=20 readonly = "readonly"> 
					
			</td>
		</tr> 
		<tr>
			<td>
				<fmt:message key="label.facility.name"/>
			</td>
			<td>
				<input type ="text" id="origin" name="facilityname" value="${param['facilityname']}" >
				<span class="error">${errors.origin}</span>
			</td>
		</tr>
		<tr>
			<td>
				<fmt:message key="label.facility.description"/>
			</td>
			<td>
				<input type ="text"  id="origin2" name="description" value="${param['description']}" >
				<span class="error">${errors.origin2}</span>		
			</td>
		</tr>
		<tr>
                 <td><fmt:message key="label.facility.type" /></td>
                 <td>
                  	<select name="type">
						<option value="Gym" ${param['type'] == "Gym" ? 'selected="selected"' : ""  }>Gym</option>
						<option value="Meeting Room" ${ param['type'] == "meeting room" ? 'selected="selected"' : ""  }>Meeting Room</option>
						<option value="Classroom" ${ param['type'] == "Classroom" ? 'selected="selected"' : ""  }>Classroom</option>
					</select>
				</td>
		</tr>
		<tr>
			<td>
				<fmt:message key="label.facility.capacity"/>
			</td>
			<td>
				<input type ="text"  id="origin3" name="capacity" value="${param['capacity']}" >
				<span class="error">${errors.origin3}</span>	
			</td>
		</tr>
		<tr><td colspan="2" style="text-align:center">
		<input class="btn btn-primary" type="submit" value="Submit">
		</td></tr>
	</table>
	</form>
<%@include file="footer.jsp" %>